<template>
	<view>
		<web-view style="display: flex;flex: 1" :webview-styles="webviewStyles" :src="ssurl2">
		</web-view>
		<!-- <yaoqingAlert v-if="isShowAlert" ref="yaoqingAlert" :text="'正在火速联系客服～'"></yaoqingAlert> -->
	</view>
</template>
<script>
	import yaoqingAlert from '@/components/xjbg/loading.vue'
	export default {
		data() {
			return {
				userid: 0,
				webviewStyles: {
					// progress: {
					// 	color: '#FF3333'
					// },
				},
				isShowAlert: true,
				ssurl2: ''
			}
		},
		components: {
			yaoqingAlert,
		},
		methods: {
			close() {
				this.isShowAlert = false
			},
			async getMsg() {
				let res = await this.$fetch(this.$api.getCustomerService, {}, 'GET')
				if (res.data) this.ssurl2 = res.data
			}
		},
		onLoad(v) {
			this.userid = v.userId
			this.getMsg()
			// this.ssurl2 = 'http://im.linglinggong.net/chat/say/redchat.html?cuid=0&uname=0&gid=1&wname=0&du=2&uid=' + this
			// 	.userid
		},
	}
</script>
<style>
</style>